<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>商城首页-英雄联盟周边商城</title>
    <link rel="stylesheet" href="../static/css/swb.css"/>
    <link rel="stylesheet" href="../static/css/public.css"/>
    <link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css"/>
    <script type="text/javascript" src="../static/js/main.js"></script>
    <style>
        body {
            background-color: #f6f6f6;
        }

        .slideshow {
            background-color: #ccc;
        }

        /* swiper轮播图 */
        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }

        .swiper-pagination-bullet {
            width: 20px;
            height: 20px;
            text-align: center;
            line-height: 20px;
            font-size: 12px;
            color: #000;
            opacity: 1;
            background: rgba(0, 0, 0, 0.2);
        }

        .swiper-pagination-bullet-active {
            color: #fff;
            background: #fa4f17;
        }

        /* end swiper轮播图 */
        .commodity-box p {
            background-color: #fff;
            text-align: center;
            font-weight: 700;
            padding: 20px 0;
        }
    </style>
</head>

<body>
<header sty="hi75">
    <div class="banner cf">
        <div sty="mt17" class="logo-box ftl">
            <a sty="wi297 hi39" class="logo dpib" href=""></a>
        </div>
        <div sty="hi30 mt22" class="header-right-box ftr fdl">
            {% if user.is_authenticated %}
                <div sty="mt8 mr10" class="login_btn fl">
                    欢迎您：<em>{{ user.username }}</em>
                    <span>|</span>
                    <a href="{{ url('users:logout') }}">退出</a>
                </div>
            {% else %}
                <div sty="pr20 cf">
                    <a sty="pr6 lh30" href="{{ url('users:login') }}">您好，请登录 </a>
                </div>
            {% endif %}
            <div sty="pr28 cf">
                <a href="{{ url('users:Shopping') }}">
                    <i sty="wi28 hi25 mt3 mr4" class="shop ftl"></i>
                    <span sty="lh30 pr6" class="ftl">购物车</span>
                    <span sty="wi20 hi20 lh20 mt7 " class="shop-num ftl tac">0</span>
                </a>
            </div>
            <div sty="pr28 cf">
                <i sty="wi24 hi26 mt3 mr4" class="service ftl"></i>
                <span sty="lh30" class="ftl">客服咨询</span>
            </div>
            <div sty="cf">
                <i sty="wi20 hi20 mt5 mr4" class="qr-code ftl"></i>
                <span sty="lh30" class="ftl">微信商城</span>
            </div>
        </div>
    </div>
</header>
<div class="main bg-index">
    <div class="banner">
        <nav class="cf">
            <ul class="ftl">
                <li><a class="active" href="{{ url("index:index") }}">商城首页</a></li>
                {% for category_id, category_info in categories.items() %}
                    {% for category_1 in category_info["channels"] %}
                    <li><a href="{{ url("goods:list",kwargs={'category_id':category_1["id"], "page_num":1}) }}">{{ category_1["name"] }}</a></li>
                    {% endfor %}
                {% endfor %}
            </ul>
            <div sty="mt15 mr34" class="ftr pr cf">
                <input
                        sty="wi239 hi30 fs14"
                        class="ftl"
                        type="text"
                        onfocus="$('nav .default').hide()"
                        onblur="if (this.value == '') { $('nav .default').show() } else { $('nav .default').hide() }"
                />
                <a sty="tp9 lt10 fs14" class="default pa" href="">阿狸</a>
                <div sty="wi45 hi30" class="search-btn ftl">
                    <a href="">
                        <i sty="wi21 hi21 mt5 ml12" class="dpib"></i>
                    </a>
                </div>
            </div>
        </nav>
        <div sty="wi1200 hi384" class="slideshow">
            <!-- Swiper -->
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <a href="#">
                            <img src="../static/images/20191203094439_444068.jpg" alt=""/>
                        </a>
                    </div>
                    <div class="swiper-slide">
                        {% for lunbo_image in lunbo_images.image %}
                            <li><a href="{{ lunbo_image.image }}"></a>
                        {% endfor %}
                        <img src="../static/images/20191120100316_183781.jpg" alt=""/>
                    </div>
                    <div class="swiper-slide">
                        <img src="../static/images/20191126115851_938223.jpg" alt=""/>
                    </div>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>
        </div>
        <div class="commodity-box">
            <ul class="flex">
                <li>
                    <a href="#">
                        <img src="https://game.gtimg.cn/images/daojushop/zb/ad/201911/20191115101823_885194.jpg" alt=""/>
                    </a>
                    <p>2019全球总决赛冠军周边</p>

                </li>
                <li>
                    <a href="#">
                        <img src="https://game.gtimg.cn/images/daojushop/zb/ad/201911/20191126122537_488681.jpg" alt=""/>
                    </a>
                    <p>莫甘娜与凯尔手办</p>
                </li>
                <li>
                    <a href="#">
                        <img src="https://game.gtimg.cn/images/daojushop/zb/ad/201911/20191130122208_751168.jpg" alt=""/>
                    </a>
                    <p>2020年LPL台历</p>
                </li>
                <li>
                    <a href="#">
                        <img src="https://game.gtimg.cn/images/daojushop/zb/ad/201912/20191210103245_560899.jpg" alt=""/>
                    </a>
                    <p>毛绒战队新品来袭</p>
                </li>
            </ul>
        </div>
    </div>
</div>
<footer>
    <div sty="pt20 pb20" class="guarantee banner">
        <ul class="flex">
            <li>
                <i class="sales-return"></i>
                <span>7天无理由退换货</span>
            </li>
            <li>
                <i class="quality-goods"></i>
                <span>100%官方正品</span>
            </li>
            <li>
                <i class="pinkage"></i>
                <span>全场每单满199元包邮</span>
            </li>
        </ul>
    </div>
    <div class="issue">
        <div class="banner">
            <ul class="flex tac">
                <li>
                    <dl>
                        <dt>购物指南</dt>
                        <dd>帐号注册与登录</dd>
                        <dd>购买流程介绍</dd>
                        <dd>支付方式</dd>
                        <dd>常见问题</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>配送服务</dt>
                        <dd>全场满199元免运费</dd>
                        <dd>配送范围及运费</dd>
                        <dd>配送进度查询</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>售后服务</dt>
                        <dd>7天无理由退换货</dd>
                        <dd>退换货流程</dd>
                        <dd>商品送错的处理方案</dd>
                        <dd>售后服务及投诉</dd>
                    </dl>
                </li>
                <li>
                    <dl>
                        <dt>服务中心</dt>
                        <dd>售前咨询 售后咨询</dd>
                        <dd>客服热线：0755-25727866</dd>
                        <dd>售后：service@lolriotmall.qq.com</dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div sty="mt25 lh40" class="copy tac">技术支持：全栈12 师文博</div>
</footer>
</body>
<script src="../static/js/jquery.js"></script>
<script src="../static/js/swb.js"></script>
<script type="text/javascript" src="../static/js/main.js"></script>
<!-- Swiper JS -->
<script src="https://unpkg.com/swiper/js/swiper.min.js"></script>
{#<script type="text/javascript" src="{{ static('js/jquery.pagination.min.js') }}"></script>#}
{#<script>#}
{#    $(function () {#}
{#        $('#pagination').pagination({#}
{#            currentPage: {{ page_num }},#}
{#            totalPage: {{ total_page }},#}
{#            callback: function (current) {#}
{#                location.href = '/list/115/1/?sort=default';#}
{#                location.href = '/indexBook/{{ category.id }}/' + current;#}
{#            }#}
{#        })#}
{#    });#}
{#</script>#}
</html>
